package nf;

import imageprocessing.DePaper;
import imageprocessing.Util;

import java.awt.image.BufferedImage;
import java.io.File;


public class Main
{

	public static void main(String[] args)
	{
		SettingsStore.pluginHost.reindexModules();
		
		
		System.out.println("Loading plugin, stand back...");
		//SettingsStore.pluginHost.loadPlugin(new File("plugins/HTMLExporter-plugin.jar"));
		SettingsStore.pluginHost.loadAllPlugins(new File("plugins"));
		
		//SettingsStore.pluginHost.reindexModules();
        
        System.out.println("Main done");
        
        /*
        BufferedImage image = Util.loadImage("6626 11.jpg");
        Util.saveImage(DePaper.autoThreshold(image), "auto.png");
        Util.saveImage(DePaper.thresholdBW(DePaper.process(image, 0.1f, 0.5f, false), 230, false), "depaper.png");
        System.out.println("Processing done");
        */
	}

}
